import Vue from 'vue'
import Vuex from 'vuex'
import { getInfo,setInfo } from '../utils/storage.js'

Vue.use(Vuex)

const store = new Vuex.Store({
	state:{
		SX:getInfo()
	},
	mutations:{
		sendSXID(state,sxid){
			state.SX = sxid
			 setInfo(sxid)
		}
	},
	actions:{},
	getters:{}
})

export default store